from django.db import models
from django.conf import settings 

class Profile(models.Model):
	user = models.OneToOneField(settings.AUTH_USER_MODEL)
	date_birth = models.DateField(blank=True,null=True)
	phone = models.CharField(max_length=11)
	photo = models.ImageField(upload_to='users/%Y/%m/%d',blank=True)

	def __str__(self):
		return 'Profile for user{}'.format(self.user.username)
		

